TypeScript Programming Language by Publishing TypeScript
Author: Publishing, TypeScript [Publishing, TypeScript] , Date: March 7, 2020
, Views: 319
Parameter Details:
radix − An integer between 2 and 36 specifying the base to use for representing numeric values.
Return Value:
Returns a string representing the specified Number object.
Example:
var num = new Number ( 10 );
console. log( num. toString());
console. log( num. toString( 2 ));
console. log( num. toString( 8 ));
On compiling, it will generate the same code in JavaScript.
The code will produce the following output −
10
1010
12
valueOf():
This method returns the primitive value of the specified number object.
Syntax:
number.valueOf()
Copyright Disclaimer:
This site does not store any files on its server. We only index and link
to content provided by other sites. Please contact the content providers
to delete copyright contents if any and email us, we'll remove relevant
links or contents immediately.